<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Context Free LALR1 compiler: contextFree.parser.IndexedProduction Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="LOGO.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Context Free LALR1 compiler
   &#160;<span id="projectnumber">1.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classcontext_free_1_1parser_1_1_indexed_production.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">contextFree.parser.IndexedProduction Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for contextFree.parser.IndexedProduction:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_indexed_production__inherit__graph.png" border="0" usemap="#context_free_8parser_8_indexed_production_inherit__map" alt="Inheritance graph"/></div>
<map name="context_free_8parser_8_indexed_production_inherit__map" id="context_free_8parser_8_indexed_production_inherit__map">
<area shape="rect" id="node2" href="classcontext_free_1_1grammar_1_1_production.html" title="{contextFree.grammar.Production\n|&#45; left\l&#45; right\l&#45; rightList\l|+ Production()\l+ Production()\l+ Production()\l+ getLeft()\l+ setLeft()\l+ getRight()\l+ setRight()\l+ getRightList()\l+ setRightList()\l+ toString()\l}" alt="" coords="21,6,232,245"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for contextFree.parser.IndexedProduction:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_indexed_production__coll__graph.png" border="0" usemap="#context_free_8parser_8_indexed_production_coll__map" alt="Collaboration graph"/></div>
<map name="context_free_8parser_8_indexed_production_coll__map" id="context_free_8parser_8_indexed_production_coll__map">
<area shape="rect" id="node2" href="classcontext_free_1_1grammar_1_1_production.html" title="{contextFree.grammar.Production\n|&#45; left\l&#45; right\l|+ Production()\l+ Production()\l+ Production()\l+ getLeft()\l+ setLeft()\l+ getRight()\l+ setRight()\l+ getRightList()\l+ setRightList()\l+ toString()\l}" alt="" coords="5,288,216,512"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classcontext_free_1_1parser_1_1_indexed_production-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7c67c63baac69c30e9887c0234fd35d9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7c67c63baac69c30e9887c0234fd35d9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IndexedProduction</b> (<a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> pro)</td></tr>
<tr class="memitem:a33ac7cade5d7f2a750e07f3b7f7983ac"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a33ac7cade5d7f2a750e07f3b7f7983ac"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IndexedProduction</b> (<a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> p)</td></tr>
<tr class="memitem:ac1615174ca96db64a5adfdabd768f9d5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac1615174ca96db64a5adfdabd768f9d5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IndexedProduction</b> (int i, <a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> p)</td></tr>
<tr class="memitem:aa1754311192ad2f5c0332025dd162e5f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa1754311192ad2f5c0332025dd162e5f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IndexedProduction</b> (int i, <a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> p, String la)</td></tr>
<tr class="memitem:af2e1718023e522ef94aac862ab72307b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af2e1718023e522ef94aac862ab72307b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IndexedProduction</b> (<a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> p, Set&lt; String &gt; la)</td></tr>
<tr class="memitem:aef48dbe23561cee5a0b744978d1ac2c7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef48dbe23561cee5a0b744978d1ac2c7"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getCurrentCharIndex</b> ()</td></tr>
<tr class="memitem:a498db47a05e7f10e580d689e925193b4"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html#a498db47a05e7f10e580d689e925193b4">getCharAfter</a> ()</td></tr>
<tr class="memdesc:a498db47a05e7f10e580d689e925193b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the next character that that will be read.  <a href="#a498db47a05e7f10e580d689e925193b4"></a><br/></td></tr>
<tr class="memitem:a143a99e7bf0e81789ee79f514aa3d575"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a143a99e7bf0e81789ee79f514aa3d575"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>getCharBefore</b> ()</td></tr>
<tr class="memitem:a9673f863b315e7cff584048585906718"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9673f863b315e7cff584048585906718"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setCurrentCharIndex</b> (int currentCharIndex)</td></tr>
<tr class="memitem:a94e0e318a96518ee50607e682e7f0382"><td class="memItemLeft" align="right" valign="top">Set&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html#a94e0e318a96518ee50607e682e7f0382">getLookahead</a> ()</td></tr>
<tr class="memitem:aa79a2e2cbbc1f35d6416647d80daf3d8"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html#aa79a2e2cbbc1f35d6416647d80daf3d8">compare</a> (<a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a> p)</td></tr>
<tr class="memdesc:aa79a2e2cbbc1f35d6416647d80daf3d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compare to production without the dot.  <a href="#aa79a2e2cbbc1f35d6416647d80daf3d8"></a><br/></td></tr>
<tr class="memitem:a061cd84bd37e6111edcd52bcb5b9c749"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a061cd84bd37e6111edcd52bcb5b9c749"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html#a061cd84bd37e6111edcd52bcb5b9c749">toString</a> ()</td></tr>
<tr class="memdesc:a061cd84bd37e6111edcd52bcb5b9c749"><td class="mdescLeft">&#160;</td><td class="mdescRight">return a formatted string in the form axioms :: = expression <br/></td></tr>
<tr class="memitem:ae6af99251737ae274afc4028fa6eb13e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae6af99251737ae274afc4028fa6eb13e"></a>
boolean&#160;</td><td class="memItemRight" valign="bottom"><b>addLookahead</b> (Set&lt; String &gt; lookahead2)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a8ed426b66a378ce272cc13ae397e52cd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8ed426b66a378ce272cc13ae397e52cd"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>currentCharIndex</b></td></tr>
<tr class="memitem:a58e8935cd1c81a767b47b4d31c87b35c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a58e8935cd1c81a767b47b4d31c87b35c"></a>
Set&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>lookahead</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_indexed_production_8java_source.html#l00010">10</a> of file <a class="el" href="_indexed_production_8java_source.html">IndexedProduction.java</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa79a2e2cbbc1f35d6416647d80daf3d8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html#aa79a2e2cbbc1f35d6416647d80daf3d8">contextFree.parser.IndexedProduction.compare</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a>&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compare to production without the dot. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>production to compare </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>true if they are equal, false otherwise </dd></dl>

<p>Definition at line <a class="el" href="_indexed_production_8java_source.html#l00108">108</a> of file <a class="el" href="_indexed_production_8java_source.html">IndexedProduction.java</a>.</p>

<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_indexed_production_aa79a2e2cbbc1f35d6416647d80daf3d8_cgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_indexed_production_aa79a2e2cbbc1f35d6416647d80daf3d8_cgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_indexed_production_aa79a2e2cbbc1f35d6416647d80daf3d8_cgraph" id="classcontext_free_1_1parser_1_1_indexed_production_aa79a2e2cbbc1f35d6416647d80daf3d8_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1grammar_1_1_production.html#a6b42819c4b8af1aa759edf3ad5978f67" title="contextFree.grammar.Production.getLeft" alt="" coords="350,5,605,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a498db47a05e7f10e580d689e925193b4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html#a498db47a05e7f10e580d689e925193b4">contextFree.parser.IndexedProduction.getCharAfter</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the next character that that will be read. </p>
<dl class="section return"><dt>Returns:</dt><dd>the character after dot in the production </dd></dl>

<p>Definition at line <a class="el" href="_indexed_production_8java_source.html#l00074">74</a> of file <a class="el" href="_indexed_production_8java_source.html">IndexedProduction.java</a>.</p>

</div>
</div>
<a class="anchor" id="a94e0e318a96518ee50607e682e7f0382"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Set&lt;String&gt; <a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html#a94e0e318a96518ee50607e682e7f0382">contextFree.parser.IndexedProduction.getLookahead</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="section return"><dt>Returns:</dt><dd>a reference to the lookahead list </dd></dl>

<p>Definition at line <a class="el" href="_indexed_production_8java_source.html#l00099">99</a> of file <a class="el" href="_indexed_production_8java_source.html">IndexedProduction.java</a>.</p>

<p><div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1parser_1_1_indexed_production_a94e0e318a96518ee50607e682e7f0382_icgraph.png" border="0" usemap="#classcontext_free_1_1parser_1_1_indexed_production_a94e0e318a96518ee50607e682e7f0382_icgraph" alt=""/></div>
<map name="classcontext_free_1_1parser_1_1_indexed_production_a94e0e318a96518ee50607e682e7f0382_icgraph" id="classcontext_free_1_1parser_1_1_indexed_production_a94e0e318a96518ee50607e682e7f0382_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#ac711dbbc2be25d15c1a8aade7579e94e" title="Passed a list of production I that form the kernel of a state, return closing it, and the lookahead s..." alt="" coords="661,25,912,52"/><area shape="rect" id="node10" href="classcontext_free_1_1parser_1_1_state.html#a1afb2f9faa5ec548897e44cc863389ba" title="return one list&lt;IndexedProduction&gt; with the kernel of a state" alt="" coords="381,76,613,102"/><area shape="rect" id="node5" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a7618cff4af4edfffb9a538a7cb1e79cf" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="1283,25,1477,52"/><area shape="rect" id="node7" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#aeec32b5c83e031225114f46ac377f804" title="Calculate one step of lookahead symbol from an automaton with the algorithm of spontaneous generation..." alt="" coords="960,25,1235,52"/><area shape="rect" id="node12" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a2281981b3043c0150c1b3d3967572b1f" title="if the point is in the last position he wrote the reduces in the action table." alt="" coords="678,76,895,102"/><area shape="rect" id="node14" href="classcontext_free_1_1parser_1_1_l_a_l_r1.html#a79576626b3b59b832faecc986b293b36" title="builds the Action table GoTo from an automa LALR1 and tells us if it is or not type of LALR1..." alt="" coords="961,76,1233,102"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/contextFree/parser/<a class="el" href="_indexed_production_8java_source.html">IndexedProduction.java</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>contextFree</b>      </li>
      <li class="navelem"><a class="el" href="namespacecontext_free_1_1parser.html">parser</a>      </li>
      <li class="navelem"><a class="el" href="classcontext_free_1_1parser_1_1_indexed_production.html">IndexedProduction</a>      </li>

    <li class="footer">Generated on Wed Mar 21 2012 19:55:43 for Context Free LALR1 compiler by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
